package cn.zlb.frame.adapter.controller.person;

import cn.zlb.frame.adapter.controller.person.dto.PersonAccountCreateRespVO;
import cn.zlb.frame.adapter.controller.person.dto.PersonAccountCreateVO;
import cn.zlb.frame.common.result.Result;
import cn.zlb.frame.common.result.ResultBuilder;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Objects;

/**
 * @author yangjie.deng@resico.cn
 * @date 2023-11-09 10:36:35
 * @describe class responsibility
 */
@RestController
public class PersonAccountController {

    @PostMapping("createAccount")
    public Result<PersonAccountCreateRespVO> createAccount(@RequestBody PersonAccountCreateVO accountCreate) {
        if (Objects.isNull(accountCreate)) {
            return ResultBuilder.error("请求参数不能为空");
        }
        return ResultBuilder.success(new PersonAccountCreateRespVO());
    }
}
